package com.ruoyi.back.service

import com.baomidou.mybatisplus.extension.service.IService
import com.ruoyi.back.domain.ChannelFunction
import com.ruoyi.back.domain.FunctionInfo

interface ChannelFunctionService : IService<ChannelFunction> {

    /**
     * 通过渠道id获取功能列表
     */
    fun getFunctionStrByChannel(channelId: Long): String


    fun getFunctionInfoByChannel(channelId: Long): List<FunctionInfo>?

    /**
     * 通过通道获取功能列表
     */
    fun getFunctionByChannel(channelId: Long): List<ChannelFunction>

    /**
     * 通过通道获取功能ids
     */
    fun getFunctionIdsByChannel(channelId: Long): String?

    /**
     * 更新渠道的功能
     */
    fun updateChannelFunctions(functionIds: String?, channelId: Long): Boolean
}